$j = jQuery.noConflict();

$j(document).ready(
    function() {

        // Commentpreview Plugin is written by Frank Bueltge
        // http://bueltge.de/live-kommentarvorschau-mit-jquery-und-wordpress/541/
        $j( '#comment' ).one( 'focus', function() {
            $j( '.comment-form-comment' ).prepend( '<div id="comment-live-preview"></div>' );
        });

        var $comment = '';
        $j( '#comment' ).keyup( function() {
            $comment = $j(this).val();
            $comment = $comment.replace( /\n/g, "<br />" ).replace( /\n\n+/g, '<br /><br />' ).replace( /(<\/?)script/g,"$1noscript" );
            $j( '#comment-live-preview' ).html( $comment );
        });
    }
);